home *** CD-ROM | disk | FTP | other *** search
- ; ------------- keyhit.asm ---------------
- ;
- ; Use this in MSC C programs in place of kbhit
- ; This function avoids Ctrl-Break aborts
- ;
- _text segment para public 'code'
- assume cs:_text
- public _keyhit
- _keyhit proc near
- mov ah,1
- int 16h
- mov ax,1
- jnz keyret
- mov ax,0
- keyret: ret
- _keyhit endp
- _text ends
- end
-